Source File
links.go
Belonging Package
github.com/K-Phoen/grabana/links
package linksimport ()// Option represents an option that can be used to configure a panel link.type Option func(link *Link)// Link represents a panel link.type Link struct {Builder sdk.Link}// New creates a new logs panel.func ( string, string, ...Option) Link {:= &Link{Builder: sdk.Link{Title: ,URL: &,}}for , := range {()}return *}// OpenBlank configures the link to open in a new tab.func () Option {return func( *Link) {:= true.Builder.TargetBlank = &}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |